from typing import Any

from aiogram_dialog import DialogManager


async def set_subscription_period(_, widget: Any, manager: DialogManager):
    manager.dialog_data["subscription_period"] = widget.widget_id

    await manager.next()
